home *** CD-ROM | disk | FTP | other *** search
- > >--==MURRAY==-- wrote:
- > >
- > > I'm having a problem with Bobs. I've often had a problem with using
- > > Bob Off N and then shortly after redefining the Bob; Bob N,X,Y,I
- > > If some unknown amount of time has not passed between the two
- > > commands, then the Bob doesn't get displayed when I call
- > > Bob Clear
- > > Bob Draw
- > > Screen Swap
- > > Wait Vbl
- > > Now this causes bobs to flash on and off at times which looks pretty
- > > awful.
- > > Basically the whole problem came about because I put a split screen
- > > two player mode in my game and AMOS doesn't allow the same bobs on
- > > different screens so I had to do all sorts of changes ..... but thats
- > > another LONG story.
- >
- > Also, I`ve had that problem when you reach the edge of a large defined
- > screen say 512*512 which is only visible at 320*256, and I use Screen
- > Offset to scroll & paste icons as the player advances over the map.
- > When the edge of the screen is met I call Bob off, reset the offset to
- > 0,0, screen copy the current viewport images to the new offset & the use
- > Bob n,x,y,i. Some bob`s flicker.
-
- Sounds something like what I had in a scrolling system but different .
- (?)
- I've got a vague feeling that this worked, although it sounds funny.
- I'll check my program to be sure what I'm saying is right.
- But try:
- Screen Copy before you Clear Any Bobs
- Redefine Bobs to new position without Bob Off
- Bob Clear
- Bob Draw
- Screen Swap
- etc.
-
- This may be totally wrong, I know it doesn't sound too good but the
- solution I had (if it is the same problem) didn't seem right either,
- but it worked.
-
- -Murray
-
-
- \\|// Alastair Murray
- (o o) pmymagm@pmn1.maths.nott.ac.uk
- |~~~~~~oOOo~(_)~oOOo~~~~~|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
- | AMINET |Web-Page (Amiga/Games/AMOS/trek/Music/ |
- | game/role/CHAOS | +more) |
- |game/jump/Banana Islands| http://www.cs.nott.ac.uk/~agm/ |
- | game/shoot/Hanger18 |Current Projects: >Chaos 2 |
- | dev/amos/keystate | >Kill Em All >Hanger 18 II |
- | dev/amos/picpack | >Skool Daze >The Crow |
- | | >Game Creator >Banana Islands |
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-